//
//  LSZVideoDetailsManager.m
//  JKFuYinProject
//
//  Created by 九酷 on 2017/9/28.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZVideoDetailsManager.h"

@implementation LSZVideoDetailsManager
-(id)initWithVideoDetailsManager:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        NSMutableArray * arrayMut = [NSMutableArray array];
        self.mutDataArray = [NSMutableArray array];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"][@"res"];
        for (NSDictionary * diction in arrayData) {
            LSZVideoDetailsMg * detailsMg = [[LSZVideoDetailsMg alloc]init];
            detailsMg.click_num = [NSString stringWithFormat:@"%@",diction[@"click_num"]];
            detailsMg.id_id = [NSString stringWithFormat:@"%@",diction[@"id"]];
            detailsMg.pic = [NSString stringWithFormat:@"%@",diction[@"pic"]];
            detailsMg.playurl = [NSString stringWithFormat:@"%@",diction[@"playurl"]];
            detailsMg.title = [NSString stringWithFormat:@"%@",diction[@"title"]];
            [arrayMut addObject:detailsMg];
        }
        self.mutDataArray = arrayMut;
    }
    return self;
}
@end
@implementation LSZVideoDetailsMg
@end
